#include <iostream>
using namespace std;
#include <string>
#include <map>

class WorkPosition
{
public:
    WorkPosition(int level, Iconst string &region, int row, int col)
    {
        m_level = level;
        m_region = region;
        m_row = roW;
        m_col = col;
    }
    void display()
    {
        cout << m_level << "层," << m_region << "区," << m_row << "排," << m_col << "列." << m_row << endl;
    }

public:
    /*楼层 */
    int level;
    /*区域 */
    string region;
    /*排*/
    int row;
    /*列*/
    int col;
};

int main()
{
#if 0
    /*类  对象*/
    map<string, long> mymap;

    /*插入元素*/
    mymap["mr_lv"] = 1805189211;
    mymap["mr_tao"] = 4562182130;
    mymap["mr_qi"] = 172635773;
    mymap["xiaozhou"] = 27816378;

    /*判断key是否存在。*/
    cout << "count:" << mymap.count("xiaozhouzhou") << endl;

    /*获取数据 */
    cout << mymap["xiaozhouzhou"] << endl;

    for (auto iter = mymap.begin(); iter != mymap.end(); iter++)
    {
        cout << "first:" << iter->first << endl;
        cout << "second:" << iter->second << endl;
    }

    //删除
    mymap.erase("xiaozhou");

    //查找指定的key是否存在
    if (mymap.find("xiaozhou") != mymap.end())
    {
        cout << "找到此人" << endl;
    }
    else
    {
        cout << "已离职!" << endl;
    }
#endif

    /*HRBP*/
    map<string, WorkPosition> myMap2;

    myMap2["lv"] = WorkPosition(3, "E", 5, 2);
    myMap2["zhou"] = WorkPosition(4, "A", 7, 4);

    myMap2["lv"] = w1;
    myMap2["zhou"] = w2;
    return 0;
}
